# This is the default ansible 'hosts' file.
#
# It should live in /etc/ansible/hosts
#
#   - Comments begin with the '#' character
#   - Blank lines are ignored
#   - Groups of hosts are delimited by [header] elements
#   - You can enter hostnames or ip addresses
#   - A hostname/ip can be a member of multiple groups

# Ex 1: Ungrouped hosts, specify before any group headers.

[{{data.get('pname','fate')}}]
{%- for ip in data.get('hosts',[]) %}
{{ip}}
{%- endfor %}


[all:vars]
ansible_connection=ssh
ansible_ssh_port={{data.get('ssh_port',22)}}
ansible_ssh_user=app
#ansible_ssh_pass=test
##method: sudo or su
ansible_become_method=sudo
ansible_become_user=root
ansible_become_pass=


